home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / x_valin.swf / scripts / DefineSprite_86 / frame_15 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  512 b   |  24 lines

  1. a = getProperty("../map/platform", _X) + getProperty("../map/platform/p", _X);
  2. b = getProperty("../map/platform", _Y) + getProperty("../map/platform/p", _Y);
  3. if(_root.map.platform.p.hitTest(_X,_Y,true))
  4. {
  5.    _X = a;
  6.    _Y = b;
  7.    if(!(a / 32 == int(a / 32) and b / 16 == int(b / 16)))
  8.    {
  9.       dx = 0;
  10.       dy = 0;
  11.    }
  12. }
  13. if(!_root.map.hitTest(_X,_Y,true))
  14. {
  15.    tellTarget(_root.jug)
  16.    {
  17.       gotoAndPlay(1);
  18.    }
  19.    tellTarget(_root.audio.colision)
  20.    {
  21.       gotoAndPlay(2);
  22.    }
  23. }
  24.